import axios from "axios"
import {ref,onMounted} from "vue"
export default function getDog (){
   const url = ref("")
   async function changeDog(){
    const result = await axios.get("https://dog.ceo/api/breeds/image/random")
      url.value = result.data.message
   }
   onMounted(() => {
      console.log("切换狗狗的初始化")
   })
   return  {url,changeDog}
}